package com.lanwon.exception;

/**   
 * <p>Title：GlobalExceptionAutoConfigure</P>
 * <p>说明： 自定义异常类</P>
 * <p>Company: 蓝网科技</p >
 * @project 通用组件 V1.0
 * @author: LiuYZ
 * @date  2019年5月20日
 */
public class GlobalException extends RuntimeException{
	
	private static final long serialVersionUID = 1L;
	private String code;
	private String message;
	
	public GlobalException(String message) {
		this.message = message;
	}
	
	public GlobalException(String code,String message) {
		this.code = code;
		this.message = message;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
}
